The Profiler Window
Topic Groups |
|
The "Profiler" window is a tool that can be use to measure, in time, the performances of your scripts. It can
also be very useful to find out where exactly you should improve syntax logic to gain performances. The
precision of this profiler goes down to microseconds (millionth of a second = 0.000001s = 10-6s).
The profiler also provides useful information such as the Lua's VM memory at the moment of the call, the line
and file path and name related to the call, overall duration usage, the nature of the call, etc.
Tip2: Put your attention and sweath toward functions that are taking most of your overall processing time. Sometimes, simply reorganizing the code can improve the performances. Residual Processes When a script is running, a large amount of processing time is spent to code logic itself. That is, all if statements, for and while loops, variable declaration and accessing, etc. This time is spent somewhere and is displayed as [RESIDUAL PROCESSES]. Note1: Be aware that if LuaEdit hits a breakpoint, this will "falsify" the results. To get "true" performances values, you should always run the script from begining to end without hitting a breakpoint. Note2: If all the results from the profiler are equal to zero (0), it might means that your hardware setup does not support high performances counter and high performances frequencies. ![]() |
|
|